
project="mcp-socket-demo"

client_file="client.py"
server_file="server.py"

if [ -d $project ]; then
    echo "The folder $project has existed! Please rename the folder!"
    exit 1
fi

uv init $project
cd $project

uv add "mcp[cli]"  # dep. add to .toml
# dotenv pydantic requests

if [ -f "$client_file" ]; then
    echo "File `$client_file` exists, skipping command."
else
    echo cp ../client.py $client_file
fi

if [ -f "$server_file" ]; then
    echo "File `$server_file` exists, skipping command."
else
    echo cp ../server.py $server_file
fi

uv venv
source .venv/bin/activate

# uv pip install ...

# uv start

# uv run server.py



